package com.twb.fileCenter.ftp;

import java.io.Serializable;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/** 
 * @ClassName: FtpConfig 
 * @Description: ftp配置信息
 * @author DSY
 * @date 2017年4月12日 下午3:38:42 
 */ 
@Component
@ConfigurationProperties(prefix = "ftp")
public class FtpConfigProperties implements Serializable {
	private static final long serialVersionUID = 1L;

	private Map<String,FtpSingleProperties> ftps;

	public Map<String, FtpSingleProperties> getFtps() {
		return ftps;
	}

	public void setFtps(Map<String, FtpSingleProperties> ftps) {
		this.ftps = ftps;
	}

	public static class FtpSingleProperties implements Serializable{
		private static final long serialVersionUID = 1L;

		private String host;

		private Integer port;

		private String username;

		private String password;

		public String getHost() {
			return host;
		}

		public void setHost(String host) {
			this.host = host;
		}

		public Integer getPort() {
			return port;
		}

		public void setPort(Integer port) {
			this.port = port;
		}

		public String getUsername() {
			return username;
		}

		public void setUsername(String username) {
			this.username = username;
		}

		public String getPassword() {
			return password;
		}

		public void setPassword(String password) {
			this.password = password;
		}
	}

	
}
